package com.supermap.dubbo.api.cloud.market;

import com.alibaba.fastjson.JSON;
import com.supermap.dataservice.util.JSONUtil;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description
 * @date 2018年11月22 下午 9:48
 * @email 1301584033@qq.com
 */
public interface MarketinfoService {

    JSONUtil getAllArea();
    JSONUtil getAllMarktNameByAreaCode(String areaCode);

    JSONUtil getLastOntDay(String areaCode, String cropstype,String marketname);



    JSONUtil  getLastSevenDay(String areaCode,String code,String marketname);

    /***
     *获取所有农贸市场
     * */
    JSONUtil  getMarketTitle();
    /***
     *根据农贸市场获取最近一次商品信息
     * */
    JSONUtil  getlatelyFirstMarketinfo (String marketTitle);
    /***
     *根据农贸市场和商品名称获取最近七次商品信息
     * */
    JSONUtil  getlatelyTop7Market (String marketTitle,String goods);



}
